package com.example.easybuy.service;

import com.example.easybuy.pojo.User;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletResponse;

public interface UserService {

    /**
     * 登录
     */
    public String login(String loginName, String password, HttpServletResponse response);

    /**
     * 添加用户
     */
    public int addUser(com.example.easybuy.pojo.User user);

    /**
     * 查询登录名是否存在
     */
    public String getLoginName(String loginName);

    /**
     * 在redis里拿出用户信息
     */
    public User getUser();

}
